<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<form id="pagerForm" method="post" action="customer_pager_List?guid=<%=new Date().getTime() %>" namespace="/">
	<input type="hidden" name="pager.pageNum" value="1" />
	<input type="hidden" name="pager.numPerPage" value="${pager.numPerPage}" />
	<input type="hidden" name="pager.orderField" value="${pager.orderField}" />
	<input type="hidden" name="pager.orderDirection" value="${pager.orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" method="post" action="<%=basePath %>customer_findNameFor_Query" 
		namespace="/" onsubmit="return dwzSearch(this, 'dialog');">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>姓　名:</label>
				<input class="textInput" name="customer.cname" value="" type="text">
			</li>	  
			<li>
				<label>客户号:</label>
				<input class="textInput" name="customer.customerId" value="" type="text">
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">

	<table class="table" layoutH="118" targetType="dialog" width="100%">
		<thead>
			<tr>
				<th orderfield="customerId" width="80" align="center">患者编号</th>
				<th orderfield="cname" width="120" align="center">患者姓名</th>
				<th orderfield="cgender" width="80" align="center">性别</th>
				<th orderfield="cage" width="80" align="center">年龄</th>
				<th orderfield="caddr" align="center">家庭住址</th>
				<th width="80">查找带回</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator id="cust" value="cinfoList">
				<tr>
					<td align="center"><s:property value="#cust.customerId"/></td>
					<td align="center"><s:property value="#cust.cname"/></td>
					<td align="center"><s:property value="#cust.cgender"/></td>
					<td align="center"><s:property value="#cust.cage"/></td>
					<td align="center"><s:property value="#cust.caddr"/></td>
					<td>
						<a class="btnSelect" 
							href="javascript:$.bringBack({
								customerId:'<s:property value="#cust.customerId"/>', 
								cname:'<s:property value="#cust.cname"/>', 
								cgender:'<s:property value="#cust.cgender"/>',
								cage:'<s:property value="#cust.cage"/>', 
								cardId:'<s:property value="#cust.cardId"/>', 
								caddr:'<s:property value="#cust.caddr"/>'})" title="查找带回">选择</a>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>

	<div class="panelBar" >
		<div class="pages">
			<span>显示</span>
			<select name="numPerPage" 
				onchange="javascript:dwzPageBreak({data:{numPerPage:this.value}})">
				<option value="10" selected="selected">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span>条，共<s:property value="pager.totalCount"/>条</span>
		</div>
		<s:if test="pager.numPerPage!=''">
			<script type="text/javascript">
			setNumPerPage({numPerPage:<s:property value="pager.numPerPage"/>});
			</script>
		</s:if>
		<div class="pagination" targetType="navTab" 
			totalCount=<s:property value="pager.totalCount"/> 
			numPerPage="<s:property value="pager.numPerPage"/>" 
			pageNumShown="<s:property value="pager.pageNumShown"/>" 
			currentPage="<s:property value="pager.currentPage"/>">
		</div>

	</div>
</div>
